package com.lesso.yjy.sunflower.infra.assembler;

import com.lesso.yjy.sunflower.model.EmployeeDevice;
import com.lesso.yjy.sunflower.pojo.dto.EmployeeDeviceDTO;
import com.lesso.yjy.sunflower.pojo.vo.EmployeeDeviceVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface EmployeeDeviceAssembler {
    EmployeeDeviceAssembler INSTANCE = Mappers.getMapper(EmployeeDeviceAssembler.class);

    EmployeeDevice dtoToEntity(EmployeeDeviceDTO dto);

    List<EmployeeDeviceVO> entityListToVOList(List<EmployeeDevice>  employeeDevices);
}
